package com.ruoyi.statisticalCenter.enums;

/**
 * 流向报表
 */
public enum FlowReportEnum {
    flow_index("flow_index", "流向指标"),
    package_votes("package_votes", "包仓票数"),
    hainan_votes("hainan_votes", "海南票数"),
    ningxia_votes("ningxia_votes", "宁夏票数"),
    package_warehouse_avg_weight("package_warehouse_avg_weight", "包仓均重"),
    avg_weight_check("avg_weight_check", "均重考核"),
    stop_loss_check("stop_loss_check", "止损考核"),
    package_weight("package_weight", "包仓重量"),
    stop_loss_weight("stop_loss_weight", "止损重量"),
    flow_votes_sum("flow_votes_sum", "流向票数总和"),
    settle_weight("settle_weight", "结算重量"),
    flow_check("flow_check", "流向考核"),
    assessment_standards("assessment_standards", "考核标准"),
    flow_proportion("flow_proportion", "流向占比"),
    network_area("network_area", "网点/承包区"),
    daily_check_weight("daily_check_weight", "日考核重量"),
    gansu_votes("gansu_votes", "甘肃票数"),
    send_date("send_date", "统计日期"),
    avg_weight_index("avg_weight_index", "均重指标"),
    qinghai_votes("qinghai_votes", "青海票数"),
    avg_weight_assessment_standard("avg_weight_assessment_standard","考核标准");

    private final String code;
    private final String info;

    FlowReportEnum(String code, String info) {
        this.code = code;
        this.info = info;
    }

    public String getCode() {
        return code;
    }

    public String getInfo() {
        return info;
    }

    public static String getValue(String code) {
        if (code == null) {
            return "";
        }
        for (FlowReportEnum value : FlowReportEnum.values()) {
            if (value.code.equals(code)) {
                return value.info;
            }
        }
        return "";
    }
}
